/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package application;

/**
 *
 * @author Hui
 */
public class Status implements Comparable<Status> {

    String info;
    long time ;
    String name = "";
    public Status(long time,String info){
        this.info = info;
        this.time = time;
    }

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public long getTime(){
        return time;
    }
    public String getInfo(){
        return info;
    }
    public void SetTime(long time){
        this.time = time;
    }

    public int compareTo(Status other) {
        if(this.time<other.time){
            return -1;
        }else{
            return 1;
        }
    }

}
